home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / include / bsd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-11  |  629 b   |  29 lines

  1.  
  2. #ifndef __BSD_H__
  3. #define __BSD_H__
  4.  
  5. #ifndef _CADDR_T_DEF_
  6. #define _CADDR_T_DEF_
  7. #ifndef __WATCOMC__
  8. typedef char *        caddr_t;
  9. #endif
  10. #endif
  11.  
  12. #if !defined(__GNUC__) && !defined(__SALFORD__) && !defined(__HIGHC__)
  13. typedef unsigned short    u_short;
  14. typedef unsigned int    u_int;
  15. typedef unsigned char    u_char;
  16. typedef unsigned long    u_long;
  17.  
  18. typedef unsigned short  uid_t;
  19. typedef unsigned short  gid_t;
  20. #endif
  21.  
  22. #if !defined(__GNUC__) && !defined(__SALFORD__)
  23. #define bcopy(a,b,c)        memcpy(b,a,c)
  24. #define bcmp(a,b,c)         memcmp(a,b,c)
  25. #define bzero(a,b)          memset(a,0,b)
  26. #endif
  27.  
  28. #endif /* __BSD_H__ */
  29.